﻿/*
 * @Author: Song Xinxin
 * @Date: 2022-10-31 17:13:03
 * @LastEditors: Song Xinxin
 * @LastEditTime: 2022-11-01 17:54:19
 * @FilePath: \WYW_0419_Oasis\JavaScripts\Modules\Skill\Data_Skill.ts
 * @Description: 
 * 
 * Copyright (c) 2022 by error: git config user.name && git config user.email & please set dead value or install git, All Rights Reserved. 
 */
import { DataInfo, ModuleData } from "odin";

export class DataInfo_Skill extends DataInfo
{
	skill_Fly:boolean;//是否解锁飞行技能
    skill_Hide:boolean;//是否解锁隐身技能
	skill_Shoot:boolean;//是否解锁射击

    Hide_over:boolean;//隐身技能是否冷却完毕
    Fly_over:boolean;//飞行技能是否冷却完毕

}

export class Data_Skill extends ModuleData<DataInfo_Skill>
{
	constructor()
	{
		super(DataInfo_Skill)
	}

	/**
     * 设置是否解锁飞行技能
     */
    public setFly(state:boolean)
    {
        this.dataInfo.skill_Fly = state;
    }

    /**
     * 获取是否解锁飞行技能
     */
    public get FlyState()
    {
        return this.dataInfo.skill_Fly;
    }

    /**
     * 设置是否解锁隐身技能
     */
     public setHide(state:boolean)
     {
         this.dataInfo.skill_Hide = state;
     }

    /**
     * 获取是否解锁隐身技能
     */
    public get HideState()
    {
        return this.dataInfo.skill_Hide;
    }


	/**
     * 设置是否解锁射击
     */
    public setShoot(state:boolean)
    {
    	this.dataInfo.skill_Shoot = state;
    }

    /**
     * 获取是否解锁射击
     */
    public get ShootState()
    {
        return this.dataInfo.skill_Shoot;
    }

    /**
     * 设置隐身技能是否冷却完毕
     */
    public setHide_Over(state:boolean)
    {
    	this.dataInfo.Hide_over = state;
    }

    /**
     * 获取隐身技能是否冷却完毕
     */
    public get getHide_over()
    {
        return this.dataInfo.Hide_over;
    }

    /**
     * 设置飞行技能是否冷却完毕
     */
    public setFly_Over(state:boolean)
    {
    	this.dataInfo.Fly_over = state;
    }

    /**
     * 获取飞行技能是否冷却完毕
     */
    public get getFly_over()
    {
        return this.dataInfo.Fly_over;
    }
}